#!/usr/bin/env python3
import time

print('Press Enter to begin. Afterwards, Press Enter to "click" the stopWatchj. Press Ctrl-c to stop.')

input()
print('started.')
startTime = time.time()
lastTime = startTime
lapNum=1

try:
    while True:
        input()
        lapTime = round(time.time() - lastTime, 2)
        totalTime = round(time.time() - startTime, 2)
        print('Lap #%s:%s(%s)' % (lapNum, totalTime, lapTime), end=' ')
        lapNum += 1
        lastTime = time.time()

except KeyboardInterrupt:
    print('\nDone')
